<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>edit</title>
    </head>
    <body>
        <div class="body">
            <h1>-＝ 更新編輯運動員資料 ＝-</h1>
            <table>
            <tr>
            	<td style="width:260px;">
            	<g:form method="post">
	            	<g:hiddenField name="searchType" value="uid" />
	            	<g:hiddenField name="pw" value="2oo9" />
					<g:textField name="searchKey" />
	            	<g:actionSubmit action="edit" value="依照認證號碼撈"/>
	            </g:form>   
				<g:form method="post">
					<g:hiddenField name="searchType" value="name" />
					<g:hiddenField name="pw" value="2oo9" />
					<g:textField name="searchKey" />
	            	<g:actionSubmit action="edit"  value="依照姓名撈"/>
	            </g:form>
            	</td>
            	<td>
            	<g:form method="post">
					<g:hiddenField name="searchType" value="nation" />
					<g:hiddenField name="pw" value="2oo9" />
					<g:select name="searchKey" from="${Nation.list()}" optionKey="id" optionValue="name"/>
	            	<g:actionSubmit action="edit"  value="依照國別撈"/>
	            </g:form>   
	            <g:form method="post">
					<g:hiddenField name="searchType" value="sport" />
					<g:hiddenField name="pw" value="2oo9" />
					<g:select name="searchKey" from="${Sport.list()}" optionKey="id" optionValue="name"/>
	            	<g:actionSubmit action="edit"  value="依照運動項目撈"/>
	            </g:form>
            	</td>
            </tr>
            </table>
           
            <table>
            <tr>
            	<td>認證號碼</td>
            	<td style="width:100px;">姓名</td>
            	<td>國別</td>
            	<td>性別</td>
            	<td>運動項目</td>
            	<td>預計抵達時間</td>
            	<td>預計離開時間</td>
            </tr>
			<g:each var="person" in="${people}">
			<g:if test="${person.extra}">
				<tr class="mouseOver extra">
			</g:if>
			<g:else>
				<tr class="mouseOver">
			</g:else>
				<td>${person.uid}</td>
				<td><g:link action="singleEdit" id="${person.id}">${person.name}</g:link></td>
				<td>${person.nation?.name}</td>
				<td>${person.sex}</td>
				<td>${person.sport?.name}</td>
				<td><g:formatDate format="MM-dd HH:mm" date="${person.comeDateAt}" /></td>
				<td><g:formatDate format="MM-dd HH:mm" date="${person.goDateAt}" /></td>
			</tr>
			</g:each>
			</table>  
        </div>
    </body>
</html>
